{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/plugin.css">
<div class="yifang_container">
    <div class="container_title">
        <form action="{YIFANG_ROUTE_PREFIX}/yifang_backend_account/permissionCode" method="get" class="yifang_search">
            <input name="name" type="text" placeholder="请输入名称" {if isset($request['name'])} value="{$request['name']}" {/if}  >
            <button type="submit" class="btn3">搜索</button>
        </form>
    </div>
    <section class="yifang_content">
        <div class="yifang_list">
            <table class="list_table">
                <colgroup>
                    <col width="40px" >
                    <col width="200px" >
                    <col width="400px" >
                    <col width="100px" >
                    <col width="60px" >
                    <col width="180px" >
                    <col >
                </colgroup>
                <thead>
                <tr>
                    <td class="th"><input id="selectAll" type="checkbox"></td>
                    <td class="th">名称</td>
                    <td class="th">路径</td>
                    <td class="th">插件目录</td>
                    <td class="th">显示</td>
                    <td class="th">创建时间</td>
                    <td class="th">操作</td>
                </tr>
                </thead>
                <tbody>
                {if $listData}
                {foreach $listData["data"] $key $val}
                <tr class="tr">
                    <td><input class="checkbox" name="check_id" type="checkbox" value="{$val['id']}"></td>
                    <td>{$val['name']}</td>
                    <td style="word-break: break-all;" >{$val['path']}</td>
                    <td>{$val['plugins']}</td>
                    <td>{$val['is_show']?"是":"否"}</td>
                    <td>{$val['create_time']>0?date("Y-m-d H:i:s",$val['create_time']):"---"}</td>
                    <td>
                        <div class="btn4">
                            <a href="{YIFANG_ROUTE_PREFIX}/yifang_backend_account/permissionCode/edit?id={$val['id']}">
                                <i title="编辑" alt="" class="btn4-img iconfont icon-bianji"></i>
                            </a>
                            <i onClick="runApi(this)" title="删除" data-close="4" data-submit-url="{YIFANG_ROUTE_PREFIX}/yifang_backend_account/permissionCode?id={$val['id']}" data-method="delete" class="btn4-img del iconfont icon-delete"></i>
                        </div>
                    </td>
                </tr>
                {/foreach}
                {/if}
                </tbody>
            </table>
        </div>
    </section>
    <div class="list-bottom">
        <div class="bottom-left">
            <a href="{YIFANG_ROUTE_PREFIX}/yifang_backend_account/permissionCode/create">
                <button class="btn2 trash">添加</button>
            </a>
            <button class="btn2 del1" onclick="dataMoreDel(this)" data-close="3" data-submit-url="{YIFANG_ROUTE_PREFIX}/yifang_backend_account/permissionCode?id=" data-method="delete">彻底删除</button>
        </div>
        <div class="pages">
            {if $listData}
            {php echo app("P_page")->getPageBarV2($listData);}
            {/if}
        </div>
    </div>
</div>
<script src="__ADMIN_STATIC__/js/list.js"></script>
{include 'admin/layout/footer'}